package easysearch.classes
{
	import com.facebook.graph.FacebookDesktop;
	public class User
	{

			public var resultType:String = "User";
			public var userID:String;
			public var photoURL:String;
			public var name:String;
			public var location:String;
			public var hometown:String;
			public var profileURL:String;
			public var fbURL = "http://www.facebook.com/";
			
			public function User(json:Object){
				userID = json.id;
				photoURL = FacebookDesktop.getImageUrl(userID, "large");
				name = json.name;
				location = json.location.name;
				hometown = json.hometown.name;
				profileURL = fbURL + userID;
			}
	}
}